#include "FrakOutMigrationController.h"
#include "FrakOutVersion.h"
#include "FrakOutVersionState.h"
#include "FrakOutVersionState1_0_0.h"
#include "FrakOutVersionState1_1_0.h"
#include "FrakOutVersionStateFactory.h"

FrakOutVersionState* FrakOutVersionStateFactory::create(const FrakOutVersion* const version)
{
    if (version == FrakOutVersion::V1_0_0())
        return new FrakOutVersionState1_0_0();
    else if (version == FrakOutVersion::V1_1_0())
        return new FrakOutVersionState1_1_0();
    else
        return 0;

    // TODO: Fix the above - using the Nullington is preferable.
}
